<?php
//@author Pavel
class Form_Fm extends Zend_Form
{

     public $buttonDecorators = array(
        'ViewHelper',
        array(array('data' => 'HtmlTag'), array('tag' => 'dd', 'class' => 'block')));

    public function init()
    {
        $this->setMethod(self::METHOD_POST);

        /* this Elements & Other Definitions Here ... */
        $fmName = $this->createElement('text', 'fmName');
        $fmName->addValidator(new LastFM_ValidateUser());
        $fmName->setRequired(true);
        $fmName->addFilter('StringToLower');
        $fmName->addFilter("StringTrim");
        $fmName->setLabel('LAST FM Name');
        $this->addElement($fmName);

        $button = $this->createElement('button', 'FM_Login_button', array("label" => "Login", "type" => "submit", "class" => "thoughtbot", "decorators" => $this->buttonDecorators));
        $this->addElement($button);
    }
}

